package com.koocloud.electroplatemanage.controller;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.service.QrCodeService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: electroplatemanage
 * @description: 二维码生成接口控制层
 * @author: zww
 * @create: 2020-11-04 10:59
 */
@RestController
@RequestMapping("/qrcode")
public class QrCodeController {
        static Logger log = Logger.getLogger("qrcode");
        @Autowired
        QrCodeService qrCodeService;
    /**
     *@Description:查询零件二维码(厂家、零件数量、型号、项目名称、零件名称、图号、图纸版次、批次号、订单号)
     *@Param:
     *@return:
     *@Author: zww
     *@date: 2020/11/4
     */
    @RequestMapping(value = "/selectQrCodeBase64", method = RequestMethod.POST, name = "查询零件二维码")
    public ResponseTemplate selectQrCodeBase64(@RequestParam(name="workOrderNumber") String workOrderNumber) {
        return qrCodeService.selectQrCodeBase64(workOrderNumber);

    }
}